<template>
  <div class="login">
    <Header ref="header"></Header>
    {{ i18n("登录") }}
    <router-link to="/app-myapp-microapp">toMicroApp</router-link>
    <router-link to="/app-myapp">toMicroApp-A</router-link>
  </div>
</template>
<script>
import { Base } from "../../../mixins/index";
import { Clone } from "../../../utils/index";
export default {
  mixins: [Base],
  components: {
    Header: () =>
      import(/* webpackChunkName:'header' */ "../components/header/header.vue"),
  },
  data() {
    return { formData: {} };
  },
  created() {
    this.$actions &&
      this.$actions.setGlobalState({
        token: "111111",
      });
  },
  methods: {
    getComponentData(data) {
      this.formData = Clone({}, data);
      this.$refs["header"].getComponentData &&
        this.$refs["header"].getComponentData(this.formData);
    },
    submitComponentData() {
      let data = Clone({}, this.formData);
      return data;
    },
    verifiedData() {
      return true;
    },
  },
};
</script>
<style lang="less"></style>
